package com.geqian.web.serializer;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.TreeNode;
import com.fasterxml.jackson.databind.BeanProperty;
import com.fasterxml.jackson.databind.ObjectMapper;

public interface DeserializationConverter {
    /**
     * JSON转属性值
     *
     * @param treeNode
     * @param beanProperty
     * @param objectMapper
     * @return
     */
    Object conversion(TreeNode treeNode, BeanProperty beanProperty, ObjectMapper objectMapper) throws JsonProcessingException;

}